home *** CD-ROM | disk | FTP | other *** search
- global sndList, sndCount, chanNum, maxSnd, Nsnd, Esnd, Ssnd, Ccounter, CsprtList, cTime, mousePlace
-
- on startMovie
- preLoadCast()
- initSnd()
- puppetSprite(39, 1)
- puppetSprite(3, 1)
- CsprtList = []
- cTime = 0
- set the volume of sound 1 to 100
- end
-
- on initSnd
- Esnd = ["sounds:street3.aif", "sounds:street2.aif", "sounds:arcade.aif", "sounds:girl.aif", "sounds:street1.aif", "sounds:cbl.aif", "sounds:texture3.aif", "sounds:texture4.aif"]
- maxSnd = 400
- sndList = EMPTY
- sndCount = 1
- chanNum = 2
- repeat with i = 1 to maxSnd
- put "-" into line i of sndList
- end repeat
- end
-
- on echo
- sndCount = sndCount + 1
- if sndCount > maxSnd then
- sndCount = 1
- end if
- if line sndCount of sndList <> "-" then
- if not soundBusy(chanNum) then
- sound playFile chanNum, the pathName & line sndCount of sndList
- end if
- chanNum = chanNum + 1
- if chanNum = 9 then
- chanNum = 2
- end if
- end if
- end
-
- on animate chan, firstpos, lastpos, delaytime
- if (the memberNum of sprite chan < firstpos) or (the memberNum of sprite chan > lastpos) then
- set the memberNum of sprite chan to firstpos
- end if
- set the castNum of sprite chan to the castNum of sprite chan + 1
- if the castNum of sprite chan > lastpos then
- set the castNum of sprite chan to firstpos
- end if
- t = delaytime + the timer
- repeat while t > the timer
- if the mouseDown then
- exit repeat
- end if
- end repeat
- end
-
- on rightArrow
- if rollOver(141) then
- set the blend of sprite 141 to 50
- else
- set the blend of sprite 141 to 100
- end if
- end
-
- on exitMovie
- if rollOver(143) then
- set the blend of sprite 143 to 50
- else
- set the blend of sprite 143 to 100
- end if
- end
-